﻿using ACLCTaguigEnrollmentSystem.UserControls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ACLCTaguigEnrollmentSystem.Forms
{
    public partial class frm_Admission : Form
    {
        public frm_Admission()
        {
            InitializeComponent();
        }

        private void frm_Admission_Load(object sender, EventArgs e)
        {
            ucAdmissionRegistration();
            btn_ViewStudentInformation.Enabled = false;
        }

        private void btn_NewStudent_Click(object sender, EventArgs e)
        {
            Classes.Variable.StudentNo = null;
            ucAdmissionRegistration();
            btn_ViewStudentInformation.Enabled = false;
            btn_NewStudent.Enabled = false;
        }

        private void btn_StudentRecords_Click(object sender, EventArgs e)
        {
            ucAdmissionStudentRecords();
            btn_ViewStudentInformation.Enabled = true;
            btn_NewStudent.Enabled = true;
        }

        private void btn_EditStudentRecord_Click(object sender, EventArgs e)
        {
            ucAdmissionRegistration();
            btn_ViewStudentInformation.Enabled = false;

        }

#region Methods
        private void ucAdmissionRegistration()
        {
            pn_Main.Controls.Clear();
            uc_AdmissionStudentRegistration ucAdmissionStudentRegistration = new uc_AdmissionStudentRegistration();
            pn_Main.Controls.Add(ucAdmissionStudentRegistration);
            
        }

        private void ucAdmissionStudentRecords()
        {
            pn_Main.Controls.Clear();
            uc_AdmissionStudentRecords ucAdmissionStudentRecords = new uc_AdmissionStudentRecords();
            pn_Main.Controls.Add(ucAdmissionStudentRecords);
        }
#endregion



    }
}
